import uuid from 'uuid';
import del from './atom/db/del';

declare const action_id: string;
declare const session_id: string;
declare const spaceid: string;

interface Message {
	no: string
}

async function atom(msg: Message) {
	const systemid = '6051';

	const { exec, prepare } = del(action_id, session_id, spaceid, systemid);

	// 快捷菜单
	prepare('quick_menu', [{ no: msg.no }]);
	const res = await exec();

	if (res.code === 1) {
		return 'success';
	} else {
		return 'fail';
	}


}